import { MenuList } from "../../../stores/types";

export type RoleList = {
    id: number;
    role_name?: string;
    description?: string;
    order_num?: number;
    create_time: string;
    update_time: string;
    menus: MenuList[];
    status: number;
}

export type QueryRoleParams = {
    roleName?: string;
    // status?: number | '';
    endTime?: string;
    beginTime?: string;
    pageNum?: number;
    pageSize?: number;
}

export type RoleForm = {
    id: number;
    name: string;
    description: string;
    menuIds: number[];
    status: number;
}

export type PermissionsData = {
    permissions: string[];
}